﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BenchmarkingBManage.aspx.cs" Inherits="Benchmarking_BenchmarkingBManage" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/css.CSS" type="text/css" rel="stylesheet" />
    <link href="../css/tab.css" type="text/css" rel="stylesheet" />

    <script src="../js/Common.js" type="text/javascript"></script>

    <script src="../js/calendar.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        function document.onkeydown() {
            var e = event.srcElement;
            if (event.keyCode == 13) {
                return false;
            }
        }

        function Edit_click() {
            var HiddenID = $("HiddenID").value;
            if (isNull(HiddenID)) {
                alert("请选择一条记录！");
                return false;
            }
            var ary = HiddenID.split(',');
            if (ary.length > 2) {
                alert("只能选择一条记录进行修改！");
                return false;
            }
            var url = "AreaCategory.aspx?EditStatus=2&ID=" + ary[0];
            window.open(url, "_self", "");
        }
        function GetId(obj) {
            if (obj.checked) {
                $("HiddenID").value += obj.value + ",";
            } else {
                $("HiddenID").value.replace(obj.value + ",", "");
            }
        }
        function sltChange(obj, lbl) {
            var ary = obj.split('|')
            if (ary.length > 1)
                lbl.innerHTML = ary[1];
            else
                lbl.innerHTML = "";
        }
    </script>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server">
    <div>
        <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr style="height: 5;">
                <td>
                    <div align="left" class="greynavbar" style="background-image: url('../images/hit_bg.gif');">
                        <ul id="foldertab">
                            <li><a href="../PowerWarning/GoalOrientedManage.aspx">预测数据录入</a></li>
                            <li><a href="../PowerWarning/ChangeRateInfo_Manage.aspx">地市变化率录入</a></li>
                            <li><a href="../PowerWarning/RateChangeManage.aspx">三目标推导过程</a></li>
                            <li><a href="../PowerWarning/FixedRatioB_Manage.aspx">修正比例</a></li>
                            <li><a href="../PowerWarning/Weight_Manage.aspx">权重设置</a></li>
                            <li><a class="current" href="BenchmarkingBManage.aspx">标杆值设置</a></li>
                            <li><a href="../PowerWarning/AuthenticationBenchmarkB.aspx">标杆值验证</a></li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
        <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td valign="middle" style="height: 25; width: 100%;">
                    <img id="img1" src="../images/Indicator.jpg" style="width: 21; height: 16;" alt="当前位置" />地市标杆值设置：<asp:Label
                        ID="Indicator" runat="server"></asp:Label>
                </td>
            </tr>
            <tr style="height: 1; background-color: #dddddd;">
                <td>
                </td>
            </tr>
        </table>
        <table width="98%" border="0" cellpadding="0" class="table" cellspacing="0" align="center">
            <tr>
                <td colspan="6" align="center" valign="top">
                    <!--搜索开始-->
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                区域：<asp:DropDownList ID="sltArea" DataTextField="sName" DataValueField="id" runat="server">
                                </asp:DropDownList>
                                年月：<select id="sltYear" runat="server" style="width: 60px;">
                                    <option value="2008">2008</option>
                                    <option value="2009">2009</option>
                                    <option value="2010" selected="selected">2010</option>
                                    <option value="2011">2011</option>
                                    <option value="2012">2012</option>
                                    <option value="2013">2013</option>
                                    <option value="2014">2014</option>
                                    <option value="2015">2015</option>
                                </select>&nbsp;<select id="sltMonth" runat="server" style="width: 40px;">
                                    <option value="01">01</option>
                                    <option value="02">02</option>
                                    <option value="03">03</option>
                                    <option value="04">04</option>
                                    <option value="05">05</option>
                                    <option value="06">06</option>
                                    <option value="07">07</option>
                                    <option value="08">08</option>
                                    <option value="09">09</option>
                                    <option value="10">10</option>
                                    <option value="11">11</option>
                                    <option value="12">12</option>
                                </select>
                                <asp:Button ID="btnSearch" runat="server" CssClass="button02" Text="查询" OnClick="btnSearch_Click" />
                                <input type="hidden" id="Hidden1" name="HiddenID" runat="server" />
                                <input id="btnAdd" type="button" value="保存" runat="server" class="button05" onserverclick="btnAdd_ServerClick" />
                                <input id="btnExport" type="button" value="导出" runat="server" class="button05" onserverclick="btnExport_ServerClick" />
                            </td>
                        </tr>
                    </table>
                    <!--列表开始-->
                    <asp:GridView ID="GridView1" runat="server" Width="100%" DataKeyNames="BM_ID" OnRowDataBound="GridView1_RowDataBound"
                        ForeColor="#333333" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True"
                        PageSize="20" EmptyDataText="没搜索到相匹配的数据" BorderColor="#F9F9FB" BorderStyle="Dotted"
                        GridLines="Vertical" OnPageIndexChanging="GridView1_PageIndexChanging" OnSorting="GridView1_Sorting">
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="#F9F9FB" />
                        <RowStyle BackColor="#F9F9FB" ForeColor="#333333" Height="24px" BorderStyle="Dotted" />
                        <AlternatingRowStyle BackColor="#EFEFF8" />
                        <HeaderStyle BackColor="#E3E7F0" Height="25px" />
                        <PagerTemplate>
                            <table width="100%">
                                <tr>
                                    <td style="width: 70%" align="right">
                                        <asp:LinkButton CommandName="Page" CommandArgument="First" ID="linkBtnFirst" runat="server">首页</asp:LinkButton>
                                        <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="linkBtnPrev" runat="server">上一页</asp:LinkButton>
                                        <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="linkBtnNext" runat="server">下一页</asp:LinkButton>
                                        <asp:LinkButton CommandName="Page" CommandArgument="Last" ID="linkBtnLast" runat="server">尾页</asp:LinkButton>
                                        <asp:TextBox ID="txtGoPage" CssClass="input" runat="server" MaxLength="5" Width="15px"></asp:TextBox>
                                        <asp:LinkButton ID="linkBtnGo" runat="server" OnClick="linkBtnGo_Click">跳转</asp:LinkButton>
                                        <asp:Label ID="labMessage" runat="server" ForeColor="Red"></asp:Label>
                                    </td>
                                    <td style="width: 30%" align="right">
                                        <asp:Label ID="CurrentPageLabel" runat="server" ForeColor="Blue" Text="第1页 共5页 共89条"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </PagerTemplate>
                        <Columns>
                            <asp:BoundField DataField="Area_ID" HeaderStyle-CssClass="hidden" HeaderText="ID"
                                SortExpression="Area_ID">
                                <ItemStyle Width="10%" CssClass="hidden" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Name" HeaderText="区域名称" SortExpression="Name">
                                <ItemStyle Width="10%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Years" HeaderText="年月" SortExpression="Years">
                                <ItemStyle Width="5%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TotalProportion" HeaderText="单位业务量能耗占全年比例" SortExpression="TotalProportion">
                                <ItemStyle Width="10%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LastMonthlProportion" HeaderText="单位业务量能耗占上月比例" SortExpression="LastMonthlProportion">
                                <ItemStyle Width="10%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CumulativProportion" HeaderText="单位业务量能耗占上月累计比例" SortExpression="CumulativProportion">
                                <ItemStyle Width="15%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="AdjustProportion" HeaderText="警戒线月度调整比例" SortExpression="AdjustProportion">
                                <ItemStyle Width="10%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ExpectedRate" HeaderText="预计耗电变化率" SortExpression="ExpectedRate">
                                <ItemStyle Width="10%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ActualRate" HeaderText="耗电变化率" SortExpression="ActualRate">
                                <ItemStyle Width="10%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Bussiness" HeaderText="上月单位业务量耗电" SortExpression="Bussiness">
                                <ItemStyle Width="5%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CalculationBenchmark" HeaderText="计算标杆值" SortExpression="CalculationBenchmark">
                                <ItemStyle Width="10%" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <select id="sltType" runat="server" style="width: 80px; display: none;">
                                    </select>
                                    <input id="txtMark" type="text" runat="server" style="width: 50px;" />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    选择标杆值分类
                                </HeaderTemplate>
                                <ItemStyle Width="20%" HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ManuallyBenchmark" HeaderStyle-CssClass="hidden" HeaderText="ManuallyBenchmark"
                                SortExpression="ManuallyBenchmark">
                                <ItemStyle Width="10%" CssClass="hidden" HorizontalAlign="Left" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                    <!--列表结束-->
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
